package com.example.demo810.biz;

import com.example.demo810.po.SysRole;
import com.example.demo810.repo.RoleRepo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author lzh
 * @date 2020/8/10 - 10:49
 */
@Service
public class SysRoleService {

    @Autowired
    RoleRepo roleRepo;

    public SysRole get(Long roleId){

        return roleRepo.findById(roleId).orElse(null);


    }
}
